import request from "@/utils/request";
// 上传图片接口
export function uploadImage(data) {
    return request({
        url: `/api/v1/upload/picture`,
        method: "post",
        data,
    });
}
// 检查秒传
export function CheckExist(data) {
    return request({
        url: "/api/v1/upload/checkExist",
        method: "post",
        data,
    });
}
// 上传大文件
export function UploadBigFile(data, onUploadProgress) {
    return request({
        url: "/api/v1/upload/bigFileUpload",
        method: "post",
        data,
        onUploadProgress
    });
}
// 上传视频
export function UploadVideo(data, onUploadProgress) {
    return request({
        url: "/api/v1/upload/videoUpload",
        method: "post",
        data,
        onUploadProgress
    });
}
// 中断上传视频
export function InterruptUploadVideo(data) {
    return request({
        url: "/api/v1/upload/cancelVideo",
        method: "delete",
        data,
    });
}
// 删除已上传文件
export function DeleteAlreadyUploadFile(data) {
    return request({
        url: "/api/v1/upload/remove",
        method: "delete",
        data,
    });
}
// 批量删除已上传文件
export function BatchDeleteAlreadyUploadFile(data) {
    return request({
        url: "/api/v1/upload/batch/remove",
        method: "delete",
        data,
    });
}
// 检测是否可以删除文件
export function DetectCosRemove(data) {
    return request({
        url: `/api/v1/upload/cos/remove`,
        method: "delete",
        data
    });
}
// 检测是否可以批量删除文件
export function DetectCosBatchRemove(data) {
    return request({
        url: `/api/v1/upload/cos/batch/remove`,
        method: "delete",
        data
    });
}